package com.pcbly.web.components.views.jsp.ui;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.ResetTag;

import com.opensymphony.xwork2.util.ValueStack;
import com.pcbly.web.components.views.jsp.ExtReset;

public class ExtResetTag extends ResetTag {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3243573953561428646L;
	private String textAndIcon;
	public String getTextAndIcon() {
		return textAndIcon;
	}
	public void setTextAndIcon(String textAndIcon) {
		this.textAndIcon = textAndIcon;
	}
	public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new ExtReset(stack, req, res);
    }
	protected void populateParams() {
        super.populateParams();
        ExtReset reset=(ExtReset)component;
        reset.setTextAndIcon(textAndIcon);
	}
}
